import request from '@/utils/request'

// 查询辅料领料单行列表
export function listAccessoryline(query) {
  return request({
    url: '/mes/wm/accessory/line/list',
    method: 'get',
    params: query
  })
}

// 查询辅料领料单行详细
export function getAccessoryline(wmLineId) {
  return request({
    url: '/mes/wm/accessory/line/' + wmLineId,
    method: 'get'
  })
}

// 新增辅料领料单行
export function addAccessoryline(data) {
  return request({
    url: '/mes/wm/accessory/line',
    method: 'post',
    data: data
  })
}

// 修改辅料领料单行
export function updateAccessoryline(data) {
  return request({
    url: '/mes/wm/accessory/line',
    method: 'put',
    data: data
  })
}

// 删除辅料领料单行
export function delAccessoryline(wmLineId) {
  return request({
    url: '/mes/wm/accessory/line/' + wmLineId,
    method: 'delete'
  })
}


// 查询列表(工单任务)
export function listAccessory(query) {
  return request({
    url: '/mes/wm/accessory/line/getList',
    method: 'get',
    params: query
  })
}
